package com.stx.action;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

/*
 * 用户退出清空session
 * 然后重新跳转到下一个action
 * 然后到主页
 * */
public class LoginOut extends ActionSupport{

	public String loginOut(){
		ServletActionContext.getRequest().getSession().removeAttribute("user");
		return "success";
	}
	public String loginOutAdmin(){
		ServletActionContext.getRequest().getSession().removeAttribute("user");
		return "success";
	}
}
